<?php /*a:2:{s:63:"D:\projects\junhe\app\data\view\article\article_cate\index.html";i:1740136709;s:58:"D:\projects\junhe\app\data\view\..\..\admin\view\main.html";i:1740136709;}*/ ?>
<div class="layui-card">
    
    
    <?php if(!(empty($title) || (($title instanceof \think\Collection || $title instanceof \think\Paginator ) && $title->isEmpty()))): ?>
    <div class="layui-card-header">
        <span class="layui-icon font-s10 color-desc margin-right-5">&#xe65b;</span><?php echo htmlentities((isset($title) && ($title !== '')?$title:''),ENT_QUOTES); ?>
        <div class="pull-right">
<?php if(auth("add_batch")): ?>
<button data-modal='<?php echo url("add_batch"); ?>' data-title="批量添加分类" class='layui-btn layui-btn-sm layui-btn-primary'>批量添加分类</button>
<?php endif; if(auth("add")): ?>
<button data-modal='<?php echo url("add"); ?>' data-title="添加分类" class='layui-btn layui-btn-sm layui-btn-primary'>添加分类</button>
<?php endif; if(auth("remove")): ?>
<button data-action='<?php echo url("remove"); ?>' data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>删除分类</button>
<?php endif; ?>
</div>
    </div>
    <?php endif; ?>
    
    <div class="layui-card-line"></div>
    <div class="layui-card-body">
        <div class="layui-card-html">
            
<style>
    .layui-table td, .layui-table th {
        padding: 5px 15px !important;
    }
</style>
<div class="think-box-shadow">

    <table class="layui-table margin-top-10" lay-skin="line">
        <?php if(!(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty()))): ?>
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
            </th>
            <th class='list-table-sort-td'>
                <button type="button" data-reload class="layui-btn layui-btn-xs">排序</button>
            </th>
            <th class='text-center'>ID</th>
            <th class='text-left nowrap'>栏目名称</th>
            <th class="text-center">栏目模型</th>
            <th class="text-center">内容模型</th>
            <th class="text-center">导航显示</th>
            <th class="text-center">是否推荐</th>
            <th class="text-center">状态</th>

            <th></th>
        </tr>
        </thead>
        <?php endif; ?>
        <tbody>
        <?php foreach($list as $keyTop=>$vo): ?>
            <tr>
                <td class='list-table-check-td think-checkbox'>
                    <input class="list-check-box" value='<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>' type='checkbox'>
                </td>
                <td class='list-table-sort-td'>
                    <input data-action-blur="<?php echo request()->url(); ?>" data-value="id#<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>;action#sort;sort#{value}" data-loading="false" value="<?php echo htmlentities($vo['sort'],ENT_QUOTES); ?>" class="list-sort-input">
                </td>
                <td class='text-center nowrap'>
                    <?php echo htmlentities($vo['id'],ENT_QUOTES); ?>
                </td>
                <td class='text-left nowrap'>
                    <a data-tips-image="<?php echo htmlentities((isset($vo['logo']) && ($vo['logo'] !== '')?$vo['logo']:''),ENT_QUOTES); ?>" class="fa fa-image font-s14 margin-right-5"></a>
                    <?php if($vo['is_page'] == 1): ?>
                            <!-- 单页跳转 -->
                        <a href="/index/article/list/id/<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>" target="_blank"><b><?php echo htmlentities((isset($vo['title']) && ($vo['title'] !== '')?$vo['title']:''),ENT_QUOTES); ?></b></a>
                    <?php else: if($vo['childCount'] > 0): ?>
                        <a href="/index/article/list/id/<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>" target="_blank"><b><?php echo htmlentities((isset($vo['title']) && ($vo['title'] !== '')?$vo['title']:''),ENT_QUOTES); ?></b></a>
                        <?php else: ?>
                        <a href="/index/article/list/id/<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>" target="_blank"><b><?php echo htmlentities((isset($vo['title']) && ($vo['title'] !== '')?$vo['title']:''),ENT_QUOTES); ?></b></a>
                        <?php endif; ?>
                    <?php endif; ?>
                </td>

                <td class='text-center nowrap'>
                    <?php echo htmlentities($vo['template_name'],ENT_QUOTES); ?>
                </td>

                <td class='text-center nowrap'>
                    <?php if($vo['content_file_name'] && $vo['is_page'] == 0): ?><?php echo htmlentities($vo['content_template_name'],ENT_QUOTES); ?><?php endif; ?>
                </td>

                <td class='text-center nowrap'>
                <?php if($vo['is_nav'] == 1 and auth("is_nav")): ?>
                    <a class="layui-btn layui-btn-sm" data-action="<?php echo url('is_nav'); ?>" data-value="id#<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>;is_nav#0">是</a>
                <?php elseif(auth("is_nav")): ?>
                    <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="<?php echo url('is_nav'); ?>" data-value="id#<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>;is_nav#1">否</a>
                <?php endif; ?>
                </td>

                <td class='text-center nowrap'>

                </td>

                <td class='text-center nowrap'>
                    <?php if($vo['status'] == 1 and auth("forbid")): ?>
                    <a class="layui-btn layui-btn-sm" data-action="<?php echo url('forbid'); ?>" data-value="id#<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>;status#0">正常</a>
                    <?php elseif(auth("resume")): ?>
                    <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="<?php echo url('resume'); ?>" data-value="id#<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>;status#1">停用</a>
                    <?php endif; ?>
                </td>

                <td class='text-right nowrap'>
                    <?php if(auth("add")): ?>
                    <button data-modal='<?php echo url("add"); ?>?set_parent_id=<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>' data-title="添加分类" class='layui-btn layui-btn-sm layui-btn-primary'>添加分类</button>
                    <?php endif; if(auth("edit")): ?>
                    <a data-title="修改分类" class="layui-btn  layui-btn-sm layui-btn-warm" data-modal='<?php echo url("edit"); ?>?id=<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>'>修改</a>
                    <?php endif; if(auth("remove")): ?>
                    <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定删除吗?" data-action="<?php echo url('remove'); ?>" data-value="id#<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>">删除</a>
                    <?php endif; ?>

                </td>
            </tr>
            <?php foreach($vo['childList'] as $key=>$vc): ?>
            <tr>
                <td class='list-table-check-td think-checkbox'>
                    <input class="list-check-box" value='<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>' type='checkbox'>
                </td>
                <td class='list-table-sort-td'>
                    <input data-action-blur="<?php echo request()->url(); ?>" data-value="id#<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>;action#sort;sort#{value}" data-loading="false" value="<?php echo htmlentities($vc['sort'],ENT_QUOTES); ?>" class="list-sort-input">
                </td>
                <td class='text-center nowrap'>
                    <?php echo htmlentities($vc['id'],ENT_QUOTES); ?>
                </td>
                <td class='text-left nowrap'>
                    <a data-tips-image="<?php echo htmlentities((isset($vc['logo']) && ($vc['logo'] !== '')?$vc['logo']:''),ENT_QUOTES); ?>" class="fa fa-image font-s14 margin-right-5"></a>

                    <?php if($vc['is_page'] == 1): ?>
                        <!-- 单页跳转 -->
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="/index/article/list/id/<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>" target="_blank"><b>↪ <?php echo htmlentities((isset($vc['title']) && ($vc['title'] !== '')?$vc['title']:''),ENT_QUOTES); ?></b></a>
                    <?php else: if($vc['childCount'] > 0): ?>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/index/article/list/id/<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>" target="_blank"><b>↪ <?php echo htmlentities((isset($vc['title']) && ($vc['title'] !== '')?$vc['title']:''),ENT_QUOTES); ?></b></a>
                        <?php else: ?>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="/index/article/list/id/<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>" target="_blank"><b>↪ <?php echo htmlentities((isset($vc['title']) && ($vc['title'] !== '')?$vc['title']:''),ENT_QUOTES); ?></b></a>
                        <?php endif; ?>
                    <?php endif; ?>
                </td>

                <td class='text-center nowrap'>
                    <?php echo htmlentities($vc['template_name'],ENT_QUOTES); ?>
                </td>

                <td class='text-center nowrap'>
                    <?php if($vc['content_file_name'] && $vc['is_page'] == 0): ?><?php echo htmlentities($vc['content_template_name'],ENT_QUOTES); ?><?php endif; ?>
                </td>

                <td class='text-center nowrap'>
                <?php if($vc['is_nav'] == 1 and auth("is_nav")): ?>
                    <a class="layui-btn layui-btn-sm" data-action="<?php echo url('is_nav'); ?>" data-value="id#<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>;is_nav#0">是</a>
                <?php elseif(auth("is_nav")): ?>
                    <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="<?php echo url('is_nav'); ?>" data-value="id#<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>;is_nav#1">否</a>
                <?php endif; ?>
                </td>

                <td class='text-center nowrap'>
                    <?php if($vc['is_best'] == 1 and auth("is_best")): ?>
                    <a class="layui-btn layui-btn-sm" data-action="<?php echo url('is_best'); ?>" data-value="id#<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>;is_best#0">是</a>
                    <?php elseif(auth("is_best")): ?>
                    <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="<?php echo url('is_best'); ?>" data-value="id#<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>;is_best#1">否</a>
                    <?php endif; ?>
                </td>

                <td class='text-center nowrap'>
                    <?php if($vc['status'] == 1 and auth("forbid")): ?>
                    <a class="layui-btn layui-btn-sm" data-action="<?php echo url('forbid'); ?>" data-value="id#<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>;status#0">正常</a>
                    <?php elseif(auth("resume")): ?>
                    <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="<?php echo url('resume'); ?>" data-value="id#<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>;status#1">停用</a>
                    <?php endif; ?>
                </td>

                <td class='text-right nowrap'>
                    <?php if(auth("add")): ?>
                        <button data-modal='<?php echo url("add"); ?>?set_parent_id=<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>' data-title="添加分类" class='layui-btn layui-btn-sm layui-btn-primary'>添加分类</button>
                    <?php endif; if(auth("edit")): ?>
                    <a data-title="修改分类" class="layui-btn  layui-btn-sm layui-btn-warm" data-modal='<?php echo url("edit"); ?>?id=<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>'>修改</a>
                    <?php endif; if(auth("remove")): ?>
                    <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定删除吗?" data-action="<?php echo url('remove'); ?>" data-value="id#<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>">删除</a>
                    <?php endif; ?>

                </td>
            </tr>

                <?php foreach($vc['childList'] as $k=>$v): ?>
                <tr>
                    <td class='list-table-check-td think-checkbox'>
                        <input class="list-check-box" value='<?php echo htmlentities($v['id'],ENT_QUOTES); ?>' type='checkbox'>
                    </td>
                    <td class='list-table-sort-td'>
                        <input data-action-blur="<?php echo request()->url(); ?>" data-value="id#<?php echo htmlentities($v['id'],ENT_QUOTES); ?>;action#sort;sort#{value}" data-loading="false" value="<?php echo htmlentities($v['sort'],ENT_QUOTES); ?>" class="list-sort-input">
                    </td>
                    <td class='text-center nowrap'>
                        <?php echo htmlentities($v['id'],ENT_QUOTES); ?>
                    </td>
                    <td class='text-left nowrap'>
                        <a data-tips-image="<?php echo htmlentities((isset($v['logo']) && ($v['logo'] !== '')?$v['logo']:''),ENT_QUOTES); ?>" class="fa fa-image font-s14 margin-right-5"></a>

                    <?php if($v['is_page'] == 1): ?>
                        <!-- 单页跳转 -->
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="/index/article/list/id/<?php echo htmlentities($v['id'],ENT_QUOTES); ?>" target="_blank"><b>┕━ <?php echo htmlentities((isset($v['title']) && ($v['title'] !== '')?$v['title']:''),ENT_QUOTES); ?></b></a>
                    <?php else: ?>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="/index/article/list/id/<?php echo htmlentities($v['id'],ENT_QUOTES); ?>" target="_blank"><b>┕━ <?php echo htmlentities((isset($v['title']) && ($v['title'] !== '')?$v['title']:''),ENT_QUOTES); ?></b></a>
                    <?php endif; ?>
                    </td>

                    <td class='text-center nowrap'>
                        <?php echo htmlentities($v['template_name'],ENT_QUOTES); ?>
                    </td>

                    <td class='text-center nowrap'>
                        <?php if($v['content_file_name'] && $v['is_page'] == 0): ?><?php echo htmlentities($v['content_template_name'],ENT_QUOTES); ?><?php endif; ?>
                    </td>

                    <td class='text-center nowrap'>
                    <?php if($v['is_nav'] == 1 and auth("is_nav")): ?>
                        <a class="layui-btn layui-btn-sm" data-action="<?php echo url('is_nav'); ?>" data-value="id#<?php echo htmlentities($v['id'],ENT_QUOTES); ?>;is_nav#0">是</a>
                    <?php elseif(auth("is_nav")): ?>
                        <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="<?php echo url('is_nav'); ?>" data-value="id#<?php echo htmlentities($v['id'],ENT_QUOTES); ?>;is_nav#1">否</a>
                    <?php endif; ?>
                    </td>

                    <td class='text-center nowrap'>
                        <?php if($v['is_best'] == 1 and auth("is_best")): ?>
                        <a class="layui-btn layui-btn-sm" data-action="<?php echo url('is_best'); ?>" data-value="id#<?php echo htmlentities($v['id'],ENT_QUOTES); ?>;is_best#0">是</a>
                        <?php elseif(auth("is_best")): ?>
                        <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="<?php echo url('is_best'); ?>" data-value="id#<?php echo htmlentities($v['id'],ENT_QUOTES); ?>;is_best#1">否</a>
                        <?php endif; ?>
                    </td>

                    <td class='text-center nowrap'>
                    <?php if($v['status'] == 1 and auth("forbid")): ?>
                        <a class="layui-btn layui-btn-sm" data-action="<?php echo url('forbid'); ?>" data-value="id#<?php echo htmlentities($v['id'],ENT_QUOTES); ?>;status#0">正常</a>
                    <?php elseif(auth("resume")): ?>
                        <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="<?php echo url('resume'); ?>" data-value="id#<?php echo htmlentities($v['id'],ENT_QUOTES); ?>;status#1">停用</a>
                    <?php endif; ?>
                    </td>

                    <td class='text-right nowrap'>
                    <?php if(auth("add")): ?>
                    <button data-modal='<?php echo url("add"); ?>?set_parent_id=<?php echo htmlentities($v['id'],ENT_QUOTES); ?>' data-title="添加分类" class='layui-btn layui-btn-sm layui-btn-primary'>添加分类</button>
                    <?php endif; if(auth("edit")): ?>
                        <a data-title="修改分类" class="layui-btn  layui-btn-sm layui-btn-warm" data-modal='<?php echo url("edit"); ?>?id=<?php echo htmlentities($v['id'],ENT_QUOTES); ?>'>修改</a>
                    <?php endif; if(auth("remove")): ?>
                        <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定删除吗?" data-action="<?php echo url('remove'); ?>" data-value="id#<?php echo htmlentities($v['id'],ENT_QUOTES); ?>">删除</a>
                    <?php endif; ?>

                    </td>
                </tr>
                    <?php foreach($v['childList'] as $k4=>$v4): ?>
                    <tr>
                        <td class='list-table-check-td think-checkbox'>
                            <input class="list-check-box" value='<?php echo htmlentities($v4['id'],ENT_QUOTES); ?>' type='checkbox'>
                        </td>
                        <td class='list-table-sort-td'>
                            <input data-action-blur="<?php echo request()->url(); ?>" data-value="id#<?php echo htmlentities($v4['id'],ENT_QUOTES); ?>;action#sort;sort#{value}" data-loading="false" value="<?php echo htmlentities($v4['sort'],ENT_QUOTES); ?>" class="list-sort-input">
                        </td>
                        <td class='text-center nowrap'>
                            <?php echo htmlentities($v4['id'],ENT_QUOTES); ?>
                        </td>
                        <td class='text-left nowrap'>
                            <a data-tips-image="<?php echo htmlentities((isset($v4['logo']) && ($v4['logo'] !== '')?$v4['logo']:''),ENT_QUOTES); ?>" class="fa fa-image font-s14 margin-right-5"></a>

                            <?php if($v4['is_page'] == 1): ?>
                            <!-- 单页跳转 -->
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <a href="/index/article/list/id/<?php echo htmlentities($v4['id'],ENT_QUOTES); ?>" target="_blank"><b>└─ <?php echo htmlentities((isset($v4['title']) && ($v4['title'] !== '')?$v4['title']:''),ENT_QUOTES); ?></b></a>
                            <?php else: ?>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <a href="/index/article/list/id/<?php echo htmlentities($v4['id'],ENT_QUOTES); ?>" target="_blank"><b>└─ <?php echo htmlentities((isset($v4['title']) && ($v4['title'] !== '')?$v4['title']:''),ENT_QUOTES); ?></b></a>
                            <?php endif; ?>
                        </td>

                        <td class='text-center nowrap'>
                            <?php echo htmlentities($v4['template_name'],ENT_QUOTES); ?>
                        </td>

                        <td class='text-center nowrap'>
                            <?php if($v4['content_file_name'] && $v4['is_page'] == 0): ?><?php echo htmlentities($v4['content_template_name'],ENT_QUOTES); ?><?php endif; ?>
                        </td>

                        <td class='text-center nowrap'>
                            <?php if($v4['is_nav'] == 1 and auth("is_nav")): ?>
                            <a class="layui-btn layui-btn-sm" data-action="<?php echo url('is_nav'); ?>" data-value="id#<?php echo htmlentities($v4['id'],ENT_QUOTES); ?>;is_nav#0">是</a>
                            <?php elseif(auth("is_nav")): ?>
                            <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="<?php echo url('is_nav'); ?>" data-value="id#<?php echo htmlentities($v4['id'],ENT_QUOTES); ?>;is_nav#1">否</a>
                            <?php endif; ?>
                        </td>

                        <td class='text-center nowrap'>
                            <?php if($v4['is_best'] == 1 and auth("is_best")): ?>
                            <a class="layui-btn layui-btn-sm" data-action="<?php echo url('is_best'); ?>" data-value="id#<?php echo htmlentities($v4['id'],ENT_QUOTES); ?>;is_best#0">是</a>
                            <?php elseif(auth("is_best")): ?>
                            <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="<?php echo url('is_best'); ?>" data-value="id#<?php echo htmlentities($v4['id'],ENT_QUOTES); ?>;is_best#1">否</a>
                            <?php endif; ?>
                        </td>

                        <td class='text-center nowrap'>
                            <?php if($v4['status'] == 1 and auth("forbid")): ?>
                            <a class="layui-btn layui-btn-sm" data-action="<?php echo url('forbid'); ?>" data-value="id#<?php echo htmlentities($v4['id'],ENT_QUOTES); ?>;status#0">正常</a>
                            <?php elseif(auth("resume")): ?>
                            <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="<?php echo url('resume'); ?>" data-value="id#<?php echo htmlentities($v4['id'],ENT_QUOTES); ?>;status#1">停用</a>
                            <?php endif; ?>
                        </td>

                        <td class='text-right nowrap'>

                            <?php if(auth("edit")): ?>
                            <a data-title="修改分类" class="layui-btn  layui-btn-sm layui-btn-warm" data-modal='<?php echo url("edit"); ?>?id=<?php echo htmlentities($v4['id'],ENT_QUOTES); ?>'>修改</a>
                            <?php endif; if(auth("remove")): ?>
                            <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定删除吗?" data-action="<?php echo url('remove'); ?>" data-value="id#<?php echo htmlentities($v4['id'],ENT_QUOTES); ?>">删除</a>
                            <?php endif; ?>

                        </td>
                    </tr>
                    <?php endforeach; ?>

                <?php endforeach; ?>

            <?php endforeach; ?>

        <?php endforeach; ?>
        </tbody>
    </table>
    <?php if(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty())): ?><span class="notdata">No record</span><?php else: ?><?php echo (isset($pagehtml) && ($pagehtml !== '')?$pagehtml:''); ?><?php endif; ?>
</div>

        </div>
    </div>
    
</div>